import { ConfigProvider } from 'antd';
import ReactDOM from 'react-dom/client';
import { Provider } from 'react-redux';
import { PersistGate } from "redux-persist/integration/react";
import store, { persistor } from './store';
import { BrowserRouter as Router } from 'react-router-dom';

//import store from './store';
import './index.css';
import App from '@/App';
import "antd/dist/reset.css";

const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);
root.render(
  <ConfigProvider theme={{
    token: {
      // colorBgContainer: "red "
      //colorPrimary: "yellow",
    }
  }}>
    <PersistGate persistor={persistor}>
      <Provider store={store}>
        <Router>
          <App />
        </Router>
      </Provider>
    </PersistGate>
  </ConfigProvider>
);


